-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tests-only] ApiTests: sharing subItems inside of space #3354
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally to the comments I would suggest to check if the share was created
e.g. checking if Brian can see the received share
Otherwise the server might just return "200" without doing anything and we would not notice
P.S. If you are using intelliJ Ctrl+Alt+L will format the Gherkin tables
tests/acceptance/features/apiSpaces/shareSubItemOfSpace.feature
Outdated
Show resolved
Hide resolved
I tryed to add checking from core so as not to duplicate code in ocis
but it doesn't work for me, I get |
if Alice has shared |
💥 Acceptance test localApiTests-apiSpaces-ocis failed. Further test are cancelled... |
df0ca9c
to
1fe5d0f
Compare
@individual-it thanks for review. I fixed it and PR is ready |
Author: Viktor Scharf <[email protected]> Date: Sun Mar 27 21:36:13 2022 +0200 [tests-only] ApiTests: sharing subItems inside of space (#3354) * add apiTests share subItem inside of space
Author: Viktor Scharf <[email protected]> Date: Sun Mar 27 21:36:13 2022 +0200 [tests-only] ApiTests: sharing subItems inside of space (#3354) * add apiTests share subItem inside of space
added tests sharing subItems inside of the space:
Only users with the manager space role can be able to share resources within the space
Users with editor and viewer space role cannot be able to share resources within the space.
They get 404 Error with "No share permission" message. for client would certainly be better to get 403.
code here:
https://github.com/cs3org/reva/blob/9e040c93d60ec5faf6c8b0347ce9ecf8d6c6ab70/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go#L192-L196